package com.own.testapp.model;

import java.io.Serializable;

/**
 * com.own.testapp.model
 *
 * @author ly-zhuqg
 * @date create at 2017/9/22
 * @修订 1.修改内容   by 修改人  at 修改日期
 */
public class ServerModel implements Serializable
{
//    {
//        "data": {
//        "author": {
//            "des": "欢迎下载使用OkHttpUtils网络框架，如果遇到问题，欢迎反馈！如果觉得好用，不妨star一下，以便让更多的人了解使用！",
//                    "email": "liaojeason@126.com",
//                    "address": "北京",
//                    "name": "jeasonlzy",
//                    "github": "https://github.com/jeasonlzy0216",
//                    "qq": "QQ交流群：489873144",
//                    "fullname": "廖子尧"
//        },
//        "des": "请求服务器返回Json对象",
//                "method": "GET",
//                "url": "http://server.jeasonlzy.com/OkHttpUtils/jsonObject",
//                "ip": "2606:df00:3:0:0:0:b25d:6e94:58830"
//    },
//        "code": 0,
//            "msg": "请求成功"
//    }

    private static final long serialVersionUID = -828322761336296999L;

    public String method;
    public String ip;
    public String url;
    public String des;
    public String upload;
    public Author author;

    public class Author implements Serializable {
        private static final long serialVersionUID = 2701611773813762723L;

        public String name;
        public String fullname;
        public String github;
        public String address;
        public String qq;
        public String email;
        public String des;

        @Override
        public String toString() {
            return "Author{\n" +//
                    "\tname='" + name + "\'\n" +//
                    "\tfullname='" + fullname + "\'\n" +//
                    "\tgithub='" + github + "\'\n" +//
                    "\taddress='" + address + "\'\n" +//
                    "\tqq='" + qq + "\'\n" +//
                    "\temail='" + email + "\'\n" +//
                    "\tdes='" + des + "\'\n" +//
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ServerModel{\n" +//
                "\tmethod='" + method + "\'\n" +//
                "\tip='" + ip + "\'\n" +//
                "\turl='" + url + "\'\n" +//
                "\tdes='" + des + "\'\n" +//
                "\tupload='" + upload + "\'\n" +//
                "\tauthor=" + author + "\n" +//
                '}';
    }
}

